//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopUserStore, MinishopUserStoreResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopUserStoreList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopUserStoreResponse>(`/uctoo/minishop_user_store/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopUserStore = async (id: string) => {
  return requestClient.get<MinishopUserStore>(`/uctoo/minishop_user_store/${id}`);
};

export const adductooMinishopUserStore = async (data: Partial<MinishopUserStore>) => {
  return requestClient.post<MinishopUserStore>('/uctoo/minishop_user_store/add', data);
};

export const edituctooMinishopUserStore = async (data: Partial<MinishopUserStore>) => {
  return requestClient.post<MinishopUserStore>('/uctoo/minishop_user_store/edit', data);
};

export const deleteuctooMinishopUserStore = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_user_store/del', { id });
};
